import request from "@/utils";
import store from "@/store";
// 注册游客用户接口
export const regUserAPI = ({ username, password }) => {
  return request({
    url: "/api/tourist/reguser",
    method: "post",
    data: {
      username,
      password,
    },
  });
};
// 登录游客用户接口
export const loginAPI = ({ username, password }) => {
  return request({
    url: "/api/tourist/login",
    method: "post",
    data: {
      username,
      password,
    },
  });
};
// 获取游客数据接口
export const getUserInfoAPI = () => {
  return request({
    url: "/tourist/userinfo",
    method: "get",
    headers: {
      Authorization: store.state.touritToken,
    },
  });
};
